#-------------------------------------------------------------------------------
# Name:        Placeholders
# Purpose:
#
# Author:      Michael
#
# Created:     22/11/2013
# Copyright:   (c) Monxcleyr Productions 2013
# Licence:     GPL v3
#-------------------------------------------------------------------------------
#!/usr/bin/env python

import random, pygame

class minigame():

  """placeholder minigame"""

  def __init__(self):
    pass

  def run(self, world):

    result = bool(random.randint(0,1))

    self.setResult(world, result)


  def setResult(self, world, result):

    for obj in world.objecthandler.getObjectTypeList('console'):
      if obj.attributes['beingused']:
        obj.attributes['result'] = result

    pygame.time.delay(2000)
    world.computer.minigamecomplete = True